<template>
  <!-- 首页 -->
  <div class="HomePage">
    <!-- 第一列：九度思维九度思维及其以下-->
    <div class="row-one">
      <!-- 九度思维 -->
      <div class="jdsw">
        <div class="jdsw-img"></div>
      </div>
      <!-- button横向数列 -->
      <div class="button-transverser-list">
        <!-- 九度思维竖向-列 -->
        <template v-for="item in jdswBottonTransverseArr">
          <JdswButtonTransverse :title="item"></JdswButtonTransverse>
        </template>
      </div>
      <!-- <JdswButtonTransverse/></JdswButtonTransverse> -->
    </div>
    <!-- 第二列：点线面-地人天 及其 class=''以下 -->
    <div class="row-two">
      <div class="button-longitudingal-list">
        <template v-for="item in jdswBottonLongitudinalArr">
          <JdswButtonLongitudinal :title="item"></JdswButtonLongitudinal>
        </template>
      </div>
      <!-- 九度思维项目建设 -->
      <div class="table-row">
        <div class="table-column">
          <JdswButtonSquare :title="jdswButtonSquareArr[0]"></JdswButtonSquare>
          <!-- 测试以下居中 -->
          <!-- <div class="test"></div> -->
        </div>
        <div class="table-column"></div>
        <div class="table-column"></div>
      </div>
      <!-- 战略布局 -->
      <div class="table-row">
        <div class="table-column"></div>
        <div class="table-column">
          <JdswButtonSquare :title="jdswButtonSquareArr[1]"></JdswButtonSquare>
        </div>
        <div class="table-column"></div>
      </div>
      <!-- 项目运营 -->
      <div class="table-row">
        <div class="table-column"></div>
        <div class="table-column"></div>
        <div class="table-column">
          <JdswButtonSquare :title="jdswButtonSquareArr[2]"></JdswButtonSquare>
        </div>
      </div>
    </div>
    <!-- 第三列：智慧转化与共享动态 及其以上 -->
    <div class="row-three">
      <DynamicArea></DynamicArea>
    </div>
  </div>
</template>

<script>
import JdswButtonTransverse from "@/components/body/home/jdsw-button-transverse.vue";
import JdswButtonLongitudinal from "@/components/body/home/jdsw-button-longitudinal.vue";
import JdswButtonSquare from "@/components/body/home/Jdsw-button-square.vue";
import DynamicArea from "@/components/body/home/dynamic-area";
export default {
  name: "HomePage",
  data() {
    return {
      jdswBottonTransverseArr: [
        "point",
        "line",
        "plane",
        "entity",
        "group",
        "chain",
        "land",
        "people",
        "universe"
      ],
      jdswBottonLongitudinalArr: [
        "点",
        "线",
        "面",
        "单",
        "组",
        "链",
        "地",
        "人",
        "天"
      ],
      jdswButtonSquareArr: [
        {
          titleChinese: "项目建设",
          titleEnglish: "construct"
        },
        {
          titleChinese: "战略布局",
          titleEnglish: "layout"
        },
        {
          titleChinese: "项目运营",
          titleEnglish: "operate"
        }
      ]
    };
  },
  components: {
    JdswButtonTransverse,
    JdswButtonLongitudinal,
    JdswButtonSquare,
    DynamicArea
  }
};
</script>

<style scoped>
.HomePage {
  background-size: contain;
  display: flex;
  background: url("../../assets/home/content.png") no-repeat center top;
  padding-top: 50px;
}

.row-one {
  width: 150px;
  /* background-color: red; */
}
.row-two {
  width: 1000px;
  /* background-color: green; */
  padding-left: 50px;
}
.row-three {
  width: calc(100% - 1150px);
  /* background-color: red; */
  display: flex;
  justify-content: center;
}
.jdsw {
  background-color: #00b0f0;
  height: 150px;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.jdsw-img {
  background: url("../../assets/home/jdsw.png") no-repeat center top;
  height: 140px;
  width: 140px;
  background-position: center;
}
.button-transverser-list {
  width: 150px;
  /* background-color: red; */
  height: calc(100% - 150px);
  padding-top: 50px;
}
.button-longitudingal-list {
  display: flex;
  height: 150px;
  margin-right: 50px;
  margin-bottom: 50px;
}

.table-row {
  width: 100%;
  height: 150px;
  /* background-color: white; */
  display: flex;
}

.table-column {
  /* background-color: green; */
  width: 250px;
  height: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 50px;
}

.test {
  height: 100px;
  width: 100px;
  background-color: white;
}

.green {
  background-color: green;
}
</style>